﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MarketOnlineDTO;
using MarketOnlineDAO;

namespace MarketOnlineBUS
{
    public class AdminBUS
    {
        public List<AdminDTO> layDanhSachAdmin()
        {
            AdminDAO dao = new AdminDAO();
            return dao.layDanhSachAdmin();
        }

        public AdminDTO layAdmin(String Username,string Password)
        {
            AdminDAO dao = new AdminDAO();
            return dao.layAdmin(Username,Password);
        }
        public Boolean themAdmin(AdminDTO dto)
        {
            AdminDAO dao = new AdminDAO();
            return dao.themAdmin(dto);
        }
        public Boolean capNhatAdmin(AdminDTO dto)
        {
            AdminDAO dao = new AdminDAO();
            return dao.capNhatAdmin(dto);
        }
        public Boolean xoaAdmin(int MaAdmin)
        {
            AdminDAO dao = new AdminDAO();
            return dao.xoaAdmin(MaAdmin);
        }
    }
}
